package com.example.hotelrear.service.impl;

import com.example.hotelrear.entity.Advice;
import com.example.hotelrear.mapper.AdviceMapper;
import com.example.hotelrear.service.AdviceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author FengXiao
 * @since 2023-08-28
 */
@Service
public class AdviceServiceImpl extends ServiceImpl<AdviceMapper, Advice> implements AdviceService {
@Resource
private  AdviceMapper adviceMapper;
    @Override
    public boolean sendAdvice(int id, String msg) {
        return adviceMapper.sendAdvice(id,msg);
    }
}
